package com.kyd.auth.modle;

import lombok.Data;
import org.hibernate.annotations.DynamicInsert;
import org.hibernate.annotations.DynamicUpdate;
import org.hibernate.annotations.GenericGenerator;

import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.Id;
import java.io.Serializable;

/**
 * @author zhuangqi
 * @date 2019-03-27
 */
@Data
@Entity(name = "driver_account")
@DynamicInsert
@DynamicUpdate
public class DriverAccount implements Serializable {

    private static final long serialVersionUID = 882415825418005596L;

    @Id
    @GeneratedValue(generator = "UID")
    @GenericGenerator(name = "UID", strategy = "UID")
    private Long id;

    /**
     * 电话
     */
    private String phone;

    /**
     * 名称
     */
    private String nickname;

    /**
     * 登入密码
     */
    private String password;


}
